﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using System.Diagnostics.Contracts;

namespace DataStructure.Interview
{
    public class Question56
    {
        public static int SwapOddEventBits(int x)
        {
            return (int)(((x & 0xaaaaaaaa) >> 1) | ((x & 0x55555555) << 1));
        }
    }
}
